package com.zczc.tagmanagement.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 9:01 2018-12-10
 * @Modify by:
 */
@SpringBootApplication
@EnableTransactionManagement
@ComponentScan("com.zczc")
public class App extends SpringBootServletInitializer {

  private final static Logger LOG= LoggerFactory.getLogger(App.class);

  @Override
  public SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
    return builder.sources(App.class);
  }

  public static void main(String[] args) {
    SpringApplication.run(App.class,args);
    LOG.debug("启动成功===============================》 start");

  }

}
